package com.jianZhiOffer;

import java.util.Arrays;

public class Solution {
    public static void main(String[] args) {
        Solution40 solution40 = new Solution40();
        int[] arr = new int[]{3,2,1};
        solution40.quicksort(arr,0, arr.length-1);
//        for (int i = 0; i < arr.length; i++) {
//            System.out.println(arr[i]);
//        }
        int[] leastNumbers2 = solution40.getLeastNumbers(arr, 2);
        for (int x :
                leastNumbers2) {
            System.out.println(x);
        }
    }
}
